import { createElement } from "react";
import { Input, Select, DatePicker } from "antd";

import { EnumRequestMethod } from '../constants';
const { RangePicker } = DatePicker;

export const filterItems = [
  {
    title: "人员",
    name: "operName",
    gridSpan: 1,
    component: createElement(Input),
  },
  {
    title: "请求方式",
    name: "requestMethod",
    gridSpan: 1,
    component: createElement(Select, { options: EnumRequestMethod, allowClear: true, style: { width: "100%" } }),
  },
  {
    title: "时间",
    name: "dateRange",
    gridSpan: 1,
    component: createElement(RangePicker),
  },
];
